package com.heima.datasync;


import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;

/**
 * @Author XHui
 * @Since 2024/3/15 20:56
 * @Version 1.0
 */
@SpringBootApplication
@MapperScan("com.heima.datasync.mapper")
public class DataSyncApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(DataSyncApplication.class, args);
        System.out.println("启动成功");
    }

    @Bean
    PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
}